A5_HTML_LIST_DBF Function

Syntax

HTML_List as C = a5_HTML_List_DBF(P DO [,C default_value [,N maxRows [,L htmlEncode ]]])

Arguments

HTML_List

A formatted HTML option list.

DO

A pointer variable containing values for:

Variable
Description
Table_Name

The table that will provide the data.

Filter

An expression that selects rows to be returned.

Order

An expression that orders the rows returned.

Fields

The fields to be returned for each row.

default_value

Optional. The default selection.

maxRows

Optional. Default = 0 (All rows returned).

htmlEncode

Logical

Description

Queries a Table or Set to return an OPTION list for use in an HTML form.

Discussion

The A5_HTML_LIST_DBF() function is used in Alpha Anywhere Application Server applications to generate a list of choices for a list box or combo box control on an HTML Form. The functions queries an Alpha Anywhere table or set and returns a list of choices. The first field is the bound value and the second field is the display value. If there is only one field specified then this is both the bound and the display value.

Example

dim do as P
do.table_name = "customer"
do.filter = "unique_key_value() "
do.order = "firstname"
do.fields = <<%a%
customer_id
firstname
%a%
? a5_HTML_List_DBF(do,"00000004",0)
= 
Brad
Cathy
Courtney
Daisey
Dasfadsf
David
Dean
DeForest
Dillan

See Also